package com.hl.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.hl.sfzy.entity.Course;
import com.hl.sfzy.entity.CourseType;
import org.apache.ibatis.annotations.Param;
import java.util.List;



public interface CourseService {


    //根据id删除
    int removeByPrimaryKey(Long id);
    //新增
    int add(Course course);

    //根据id查询
    Course findByPrimaryKey(Long id);

    //修改
    int editByPrimaryKey(Course course);
    //批量删除
    int removeBatch(List<Long> ids);

    //查询所有
    List<Course> find(int pageNum, int pageSize);
    //分页查询
    PageInfo<Course> findByPage(@Param("pageNum") int pageNum,
                                    @Param("pageSize") int pageSize,
                                    @Param("courseType") Course course);
    //课程和咨询师的关联查询
    List<Course> findCourseConsultants(Long id);
    List<Course> selectByConsultantId(Long id);
}
